package com.wanmait.mavendemo.controller;

import com.wanmait.mavendemo.serivce.QuestionTypeService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("/manage/questionType")
public class QuestionTypeController {

    @Resource
    private QuestionTypeService questionTypeService;

    @RequestMapping("list")
    public void list(Model model){
        model.addAttribute("questionTypes",questionTypeService.findAll());
    }
}
